package course.date;

import java.util.Date;

public class DateTest {
    public static void main(String[] args) {
        Date date1 = new Date();
        date1.setTime(1);
        System.out.println(date1);
        method1();
    }

    public static void method1(){
        Date date1 = new Date();

        long time = date1.getTime();
        System.out.println(time);

        long time2 = System.currentTimeMillis();
        System.out.println(time2);
    }
}
